import db from '../mysqlOption/Sql'
export function MyCURD(Sql:string,data:(string | number)[]):Promise<any>{
    return new Promise((resolve,reject)=>{
        db.query(Sql,data,(err,result)=>{
            if(err){
                console.log(err);
                return reject(err)
            }
            resolve(result);
        })
    })
}
